<template>
  <div>
    <van-grid :column-num="3">
      <van-grid-item icon="orders-o" text="我的订单" @click="fun" />
      <van-grid-item icon="user-circle-o" text="账号管理" @click="fun1" />
      <van-grid-item icon="desktop-o" text="我的手机号" @click="fun2" />
      <van-grid-item icon="ecard-pay" text="周六一起拼" @click="fun3" />
      <van-grid-item icon="cash-on-deliver" text="售后服务" @click="fun4" />
      <van-grid-item icon="guide-o" text="邀请返利" @click="fun5" />
      <van-grid-item icon="balance-pay" text="优先购" @click="fun6" />
      <van-grid-item icon="after-sale" text="积分中心" @click="fun7" />
      <van-grid-item icon="diamond-o" text="会员俱乐部" @click="fun8" />
      <van-grid-item icon="location-o" text="地址管理" @click="fun9" />
      <van-grid-item icon="passed" text="支付安全" @click="fun10" />
      <van-grid-item icon="service-o" text="联系客服" @click="fun11" />
      <van-grid-item icon="records" text="意见与反馈" @click="fun12" />
      <van-grid-item icon="aim" text="我的竞拍" @click="fun13" />
    </van-grid>

    <van-button type="default" size="large" @click="del">退出登录</van-button>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    fun() {
      this.$router.push("/myorder").catch((err) => {});
    },
    fun1() {
      this.$router.push("/myzhanghu").catch((err) => {});
    },
    fun2() {
      this.$router.push("/myphone").catch((err) => {});
    },
    fun3() {
      this.$router.push("/myspell").catch((err) => {});
    },
    fun4() {
      this.$router.push("/mysell").catch((err) => {});
    },
    fun5() {
      this.$router.push("/Invite").catch((err) => {});
    },
    fun6() {
      this.$router.push("/first").catch((err) => {});
    },
    fun7() {
      this.$router.push("/integral").catch((err) => {});
    },
    fun8() {
      this.$router.push("/plus").catch((err) => {});
    },
    fun9() {
      this.$router.push("/address").catch((err) => {});
    },
    fun10() {
      this.$router.push("/zhif").catch((err) => {});
    },
    fun11() {
      this.$router.push("/kefu").catch((err) => {});
    },
    fun12() {
      this.$router.push("/yijian").catch((err) => {});
    },
    fun13() {
      this.$router.push("/jingpai").catch((err) => {});
    },
    del() {
      sessionStorage.removeItem("phone");
      this.$router.push("/home");
    },
  },
};
</script>

<style scoped>
.van-button__content {
  margin-top: 0.625rem;
}
</style>